module.exports = (app) => {
  const mongoose = app.mongoose;
  mongoose.pluralize(null); //去除集合名称后面的s
  const Schema = mongoose.Schema;
  const LoginSchema = new Schema(
    {
      name: String,
      age: { type: Number, required: true },
    },
    { versionKey: false,timestamps:true } //去除自动生成版本号
  );
  return mongoose.model("Login", LoginSchema); // 第一个参数大写开头，与文件名保持一致
};
